Skip to content

fix(cli): gate remaining dashboard URL prints behind is_verbose() for --silent compliance#211

Open
wjgong001 wants to merge 1 commit into
microsoft:mainfrom
wjgong001:fix/silent-dashboard-url
Open

fix(cli): gate remaining dashboard URL prints behind is_verbose() for --silent compliance#211
wjgong001 wants to merge 1 commit into
microsoft:mainfrom
wjgong001:fix/silent-dashboard-url

Conversation

@wjgong001
Copy link
Copy Markdown

Description

Follow-up to PR #203 (merged, by @sjh9714). PR #203 fixed the web-bg startup dashboard URL leak in src/conductor/cli/app.py, but the --silent flag is supposed to suppress ALL dashboard URL output, not just the startup print.

Remaining fixes

This PR gates the remaining dashboard URL prints behind is_verbose():

  1. src/conductor/cli/run.pyrun_workflow_async function (line 1174): The --silent flag should suppress this dashboard URL print during foreground --web runs, not just web-bg mode (fix(cli): suppress web-bg dashboard output in silent mode #203's scope).

  2. src/conductor/cli/run.pyresume function (line 1832): Same issue in the resume code path — dashboard URL printed regardless of --silent.

  3. src/conductor/cli/app.py_run_replay function (line 994): Replay dashboard URL leaked even in --silent mode.

  4. src/conductor/cli/run.py — "Workflow complete. Dashboard still running at..." shutdown messages (lines 1321, 1884): Both the run and resume functions printed the dashboard URL during shutdown regardless of --silent mode.

Testing

Existing tests from #203 should continue to pass. The fix follows the same pattern as #203: lazy-import is_verbose() from app.py and gate the print call.

Co-authored-by: sjh9714 sjh9714@users.noreply.github.com

@wjgong001
Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant